#!/bin/sh

# Overwatch initialization script

# DXVK variables

export WINEDLLOVERRIDES=d3d11
export DXVK_SPIRV_OPT=ON
export DXVK_SHADER_OPTIMIZE=1
export DXVK_DEBUG_LAYERS=0
export DXVK_SHADER_DUMP_PATH=”/tmp”
export DXVK_SHADER_READ_PATH=”/tmp”
export DXVK_LOG_LEVEL=none
export DXVK_HUD=fps,memory,version

# GAME variables

export WINEPATH="$HOME/Wine/Versions/ge-protonified-4.10-1.8-x86_64" &&
export WINEPREFIX="$HOME/Wine/Games/Overwatch" &&
export GAMEPATH="$WINEPREFIX/drive_c/Program Files (x86)/Battle.net/" &&
export GAMEEXE="Battle.net Launcher.exe" &&

# WINE variables

export PATH=$WINEPATH"/bin" &&
export WINELOADER=$WINEPATH"/bin/wine" &&
export LD_LIBRARY_PATH=$WINEPATH"/lib" &&
export WINESERVER=$WINEPATH"/bin/wineserver" &&
export WINEDLLPATH=$WINEPATH"/lib/wine/fakedlls" &&
export WINEDEBUG="-all" &&

# Execute game

cd "$GAMEPATH" &&

wine "$GAMEPATH"/"$GAMEEXE"


